﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Chaos.view.start
{
    /// <summary>
    /// Interaction logic for start.xaml
    /// </summary>
    public partial class start : UserControl
    {
        public start()
        {
            InitializeComponent();
        }

        private void start_text_control_MouseDown(object sender, MouseButtonEventArgs e)
        {
            start_text_control.Foreground = new SolidColorBrush(Colors.Yellow);
        }

        private void start_text_control_MouseEnter(object sender, MouseEventArgs e)
        {
            start_text_control.Foreground = new SolidColorBrush(Colors.SkyBlue);            
        }

        private void start_text_control_MouseLeave(object sender, MouseEventArgs e)
        {
            start_text_control.Foreground = new SolidColorBrush(Colors.White);            
        }

        private void start_text_control_MouseUp(object sender, MouseButtonEventArgs e)
        {
            start_text_control.Foreground = new SolidColorBrush(Colors.White);
            if (OnStart != null)
            {
                OnStart(this, new OnStartEvent());
            }
        }

        public class OnStartEvent : EventArgs
        {
            public OnStartEvent()
            {
            }
        };

        public delegate void OnStartDelegate(object sender, OnStartEvent e);
        public event OnStartDelegate OnStart;
    }
}
